Skip to content

#65 add get project donors route#76

Merged
Vaibhav978 merged 20 commits intomainfrom
#65-add-get-project-donors-route
Apr 12, 2026
Merged

#65 add get project donors route#76
Vaibhav978 merged 20 commits intomainfrom
#65-add-get-project-donors-route

Conversation

@mehanana
Copy link
Copy Markdown
Contributor

@mehanana mehanana commented Nov 6, 2025

ℹ️ Issue

Closes #65

📝 Description

Added GET /projects/{id}/donors endpoint so we can retreive all donors and their attributes for a project.

Briefly list the changes made to the code:

  1. Added Get /users endpoint through lambda cli tool
  2. Utilized a local database for testing (needed to add a project with no donors for testing purposes)

✔️ Verification

Verified through Swagger to make sure requests were working

Provide screenshots of any new components, styling changes, or pages.
image
image
image

🏕️ (Optional) Future Work / Notes

I had to add this line into the projects table of the database for one of my tests: ('Test Project', 100000, '2025-01-01', '2025-12-31', 'USD');

nourshoreibah
nourshoreibah previously approved these changes Nov 7, 2025
Copy link
Copy Markdown
Collaborator

@nourshoreibah nourshoreibah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work Mehana!

Rayna-Yu
Rayna-Yu previously approved these changes Nov 9, 2025
Copy link
Copy Markdown
Contributor

@Rayna-Yu Rayna-Yu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@mehanana mehanana dismissed stale reviews from Rayna-Yu and nourshoreibah via 05a66dd November 20, 2025 05:05
Copy link
Copy Markdown
Collaborator

@nourshoreibah nourshoreibah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a couple tweaks needed on the merge conflict resolution. Other than that looks good!

mehanana and others added 2 commits December 4, 2025 18:54
Co-authored-by: Nour Shoreibah <168875317+nourshoreibah@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@nourshoreibah nourshoreibah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you check the trace on GHA, it looks like it is failing because the package lock is out of sync with the package json. You could try reinstalling the packages to resolve this. Other than that LGTM (we'll have to reapprove after your changes)

Copy link
Copy Markdown
Collaborator

@nourshoreibah nourshoreibah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait where is the code for the route? is it already in main somehow?

@mehanana mehanana marked this pull request as draft February 22, 2026 20:44
@mehanana mehanana marked this pull request as ready for review February 22, 2026 20:44
@github-actions github-actions bot requested a review from tsudhakar87 February 22, 2026 20:44
github-actions bot added a commit that referenced this pull request Feb 22, 2026
Copy link
Copy Markdown
Contributor

@tsudhakar87 tsudhakar87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I think you might just have to do another npm install to update package-lock

"license": "MIT"
},
"node_modules/@cspotcode/source-map-support": {
"version": "0.8.1",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like CI is failing because of outdated package-lock

github-actions bot added a commit that referenced this pull request Feb 22, 2026
@Rayna-Yu Rayna-Yu requested a review from Vaibhav978 as a code owner April 12, 2026 17:13
Copy link
Copy Markdown
Contributor

@tsudhakar87 tsudhakar87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay! Looks good! If we want more to meet the 200 line diff requirement for today's grind sesh we could add tests for like 500s or something or add another unit test file (like in the reports lambda), but if we just want to get this merged for now that's good too

Copy link
Copy Markdown
Contributor

@Vaibhav978 Vaibhav978 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Vaibhav978 Vaibhav978 enabled auto-merge April 12, 2026 19:54
@Vaibhav978 Vaibhav978 added this pull request to the merge queue Apr 12, 2026
Merged via the queue into main with commit 228817f Apr 12, 2026
20 of 22 checks passed
@Vaibhav978 Vaibhav978 deleted the #65-add-get-project-donors-route branch April 12, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Projects] Add Get Project Donors Route (GET /projects/{id}/donors)

5 participants